import request from '@/utils/request'

export function getPermissions(params) {
  return request({
    baseURL: process.env.VUE_APP_AUTH,
    url: '/api/permission-management/permissions',
    method: 'get',
    params
  })
}

export function updatePermissions(params, data) {
  return request({
    baseURL: process.env.VUE_APP_AUTH,
    url: '/api/permission-management/permissions',
    method: 'put',
    params,
    data
  })
}
